package blackeagle.ems.entities;

import blackeagle.ems.dal.DataList;

/**
 * A collection of projects.
 */
public class ProjectCollection extends DataList<Project, ProjectCollection>{
    /**
     * The default 0-parameter constructor.
     */
    public ProjectCollection(){}
    
    @Override
    public Project getById(Integer id){
        Project retval = null;
        
        for(Project p : this){
            if(p.getId()==id){
                retval = p;
                break;
            }
        }
        
        return retval;
    }
}
